package com.example.demo.taskSchedule;

import com.example.demo.entity.ExecuteInformationEntity;

import java.util.concurrent.*;

public class DataScheduledResult {

    /**
     * 执行参数
     */
    private ExecuteInformationEntity executeInformation;
    /**
     * 加入到线程池后返回的future
     */
    private ScheduledFuture scheduledFuture;

    public DataScheduledResult(ExecuteInformationEntity executeInformation, ScheduledFuture scheduledFuture) {
        this.executeInformation = executeInformation;
        this.scheduledFuture = scheduledFuture;
    }

    public ExecuteInformationEntity getExecuteInformation() {
        return executeInformation;
    }

    public void setExecuteInformation(ExecuteInformationEntity executeInformation) {
        this.executeInformation = executeInformation;
    }

    public ScheduledFuture getScheduledFuture() {
        return scheduledFuture;
    }

    public void setScheduledFuture(ScheduledFuture scheduledFuture) {
        this.scheduledFuture = scheduledFuture;
    }
}
